package com.jial08.designpatterns.builder;

/**
 * <p>类描述：指挥者。</p>
 *
 * @author jl
 * @version v1.0.0.1。
 * @since JDK1.8。
 * <p>创建日期：2019/10/31 上午9:55。</p>
 */
public class PersonDirector {
	private AbstractPersonBuilder builder;

	public PersonDirector(AbstractPersonBuilder builder) {
		this.builder = builder;
	}

	public void creatPerson() {
		builder.buildHead();
		builder.buildBody();
		builder.buildArmLeft();
		builder.buildArmRight();
		builder.buildLegLeft();
		builder.buildLegRight();
	}
}
